Hi, I tried to figure out what the "method" parameter of \setupinitial
does – it changes the handling of quotation marks at the beginning of
the text. It’s defined in context/base/mkiv/typo-drp.lua
But I found no difference between first, last, and none; just "auto"
Am 09.02.24 um 22:06 schrieb Thomas Meyer:
Thank you, Pablo,
next question:
why does it say here
https://wiki.contextgarden.net/Command/setupinitial
default is 0pt?
Why does the information not match?
Crazy!
Either it changed since 2020, or Garulfo just assumed wrongly when they
wrote
Thank you, Pablo,
next question:
why does it say here
https://wiki.contextgarden.net/Command/setupinitial
default is 0pt?
Why does the information not match?
Crazy!
Am 09.02.24 um 20:02 schrieb Pablo Rodriguez via ntg-context:
On 2/9/24 09:53, Thomas Meyer wrote:
Hi folks,
if I understand
On 2/9/24 09:53, Thomas Meyer wrote:
> Hi folks,
>
> if I understand it correct it is not necessary to set default parameters.
> In my example it is a difference to set it or not (distance=0pt should
> be default):
Hi Thomas,
the default (as per line 65 in typo-drp.mkxl) is .125\emwidth.
This
Hi folks,
if I understand it correct it is not necessary to set default parameters.
In my example it is a difference to set it or not (distance=0pt should
be default):
\setupinitial%[distance=0pt]
\starttext
\placeinitial
\input knuth
\stoptext
Why?
Greetings
Thomas
, but with the
addition of an indenting setup:
% SOT
\setupinitial[n=2, continue=yes]
\setupindenting[medium, yes]
\setuphead[chapter][
after={\placeinitial},
page=no,
]
\starttext
\chapter{one}
Kermit Ruffins
Meet me at the second line.
\chapter{two}
\input knuth
Meet me at the second line.
\stoptext
local default = typesetters.initials.actions.default
function typesetters.initials.actions.default(...)
nodes.tasks.enableaction("finalizers", "userdata.post_lettrine")
return default(...)
end
\stopluacode
\setupinitial[n=2]
[...]
.hangindent
end
return head
end
nodes.tasks.appendaction("processors", "before", "userdata.next_par")
nodes.tasks.disableaction("processors", "userdata.next_par")
local default = typesetters.initials.
't tenable. Anyhow,
> > What source document are you talking about here?
> >
> > You're already sourcing the lines after chapter one. As a matter of
> > fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
> > null, void, an space, a separation, an abstrac
n't sourcing, then you'd have zilch, nada, zero, empty,
> null, void, an space, a separation, an abstract
>
> Just define Kermit Muffins and it should be good to go
>
>
> \setupinitial[n=2]
>
> \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at
> the sec
one. As a matter of
fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
null, void, an space, a separation, an abstract
Just define Kermit Muffins and it should be good to go
\setupinitial[n=2]
\def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Me
probably
>> there is a better way to achieve the correct result.
>>
>> \setupinitial[n=2]
>>
>> \setuphead[chapter][
>> after={\placeinitial},
>> page=no,
>> ]
>>
>> \starttext
>> \chapter{one}
>> Kermit Ruffins \hfill\break % <---
the source
document.
Cheers!
On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
ntg-context@ntg.nl> wrote:
> Hi,
>
> Adding \hfill\break to the short line solves the issue, but probably there
> is a better way to achieve the correct result.
>
> \setupinitial[n=2
Hi,
Adding \hfill\break to the short line solves the issue, but probably there is a
better way to achieve the correct result.
\setupinitial[n=2]
\setuphead[chapter][
after={\placeinitial},
page=no,
]
\starttext
\chapter{one}
Kermit Ruffins \hfill\break % <---
Meet me at the second l
I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
wherein the first letter is a lettrine. When the first paragraph is too
short, the second paragraph overlaps the lettrine.
% SOT
\setupinitial[n=2]
\setuphead[chapter][
after={\placeinitial},
page=no,
]
\starttext
Hi Wolfgang,
You can use the tabulate environment to create parallel paragraphs.
Just one thing for others, this solution as the same problem as
paragraphs: \placeinitial won't work.
I.e. this:
\setupinitial[text=#1]\placeinitial
inside the tabulate or paragraphs doesn't work (but here
Gerben Wierda via ntg-context 于2023年5月17日周三 06:42写道:
> I did a simple thing, replace a \framed by \framedtext to get
> \placeinitial working but that doesn't seem to work automatically:
>
> %==
> \starttext
> \setupinitial[n=2,text=Knuth]\placei
I did a simple thing, replace a \framed by \framedtext to get \placeinitial
working but that doesn't seem to work automatically:
%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth
\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial
I'd like to use a drop cap inside a \framed, but it doesn't work.
Minimal example:
%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth
\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth
}
\stoptext
tykwa-Poltawskiego
> font.
>
> Found out that the following does work with the *\placeinitial*
> command:
>
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
>
> sa 4]*
>
> So something weird is happening I suppose!
>
> Reg
On 2/20/23 16:02, G.C.H.M. Verhaag via ntg-context wrote:
> [...]
> Found out that the following does work with the *\placeinitial* command:
>
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
> sa 4]*
>
> So something weird is happening
efinefont[InitialCapFont][name:antpoltcondregular*default sa 4]*
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*
>
> Has anybody any idea why this doesn't work?
Hi Geert,
this works for me:
\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]
%\setupinitial[s
:
*\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
sa 4]*
So something weird is happening I suppose!
Regards,
Geert Verhaag___
If your question is of interest to others as well, please add
*default sa 4]*
*\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*
Has anybody any idea why this doesn't work?
Did you confirm that \InitialCapFont works outside of that setup?
I recently used initials with a simple "font=Serif at 37pt,", and that
worked. Maybe the op
Hi,
Yes Hraban that worked! Thanks!
My next issue is adapting the font-family, because a want to use the
*Antykwa-Poltawskiego* font|| as my initial. I tried the following:
*\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]*
*\setupinitial[color=MyColor,distance=6pt,n=3,font
Am 20.02.23 um 10:39 schrieb G.C.H.M. Verhaag via ntg-context:
*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3]*
doesn't seem to work! Is this as expected behaviour or a possible issue?
The color key generally takes color _names_
Would state=start within \setupinitial[...] help?
Best Wishes
Keith McKay
On 20/02/2023 09:39, G.C.H.M. Verhaag via ntg-context wrote:
Hi,
Thanks for your suggestion Alan! I've been using lettrine all the
time, without knowing it was actually obsolete, sorry!
I'm now trying
Hi,
Thanks for your suggestion Alan! I've been using lettrine all the time,
without knowing it was actually obsolete, sorry!
I'm now trying the \placeinitial command but coloring like:
*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3
In mkiv and mkxl, we use
\placeinitial
rather than the obsolete (mkii) lettrine module.
See also \setupinitial.
Alan
On Sun, 19 Feb 2023 17:12:45 +0100
"G.C.H.M. Verhaag via ntg-context" wrote:
> Dear ConTeXt-user,
>
> Have been using ConTeXt for quite some time
The following produces different results in mkiv and lmtx (to which I am brand
new):
\setupinitial[distance=1pt,font=Serif at 36pt,n=2]
\setupindenting[medium,yes]
\starttext
\placeinitial
\input knuth
\stoptext
The mkiv output is the desired effect. It works fine in lmtx if I do
nts; small minds
> discuss people.
> \stoptext
>
> However, the leading quotation mark is gobbled. Is there any generic way of
> detecting a leading quotation mark while keeping initial caps on the first
> character?
>
Not really generic, and maybe not what you want, but there i
Hi,
since the lettrine module does not work with LMTX, I’ve looked into
\setupinitial.
(There is a different thread about this.)
There is a „style“ parameter to change the style, but whenever I change the
style, the font size is reset.
This is not what I expected.
This was the case in context
uth
> \blank[2*big]
>
> \setfirstline[smallcapsfirstline]
> \setinitial[Q] Quo usque tandem abutere, Catilina, patientia nostra? quam diu
> etiam furor iste tuus nos1 eludet? quem ad finem sese effrenata iactabit
> audacia?
>
> \stoptext
> %%
t
I hope this will give you some ideas!
References:
https://wiki.contextgarden.net/Command/setupinitial
https://wiki.contextgarden.n
e info for lettrine)
Hi Gerben,
\setupinitial is your friend.
i-context.pdf (included in LMTX) contains the available options
(searching for "\setupinitial [", without quotation marks).
Both commands have different feature sets, e.g. with lettrine you can use
a image for the initial and
With the following minimal example:
\definemeasure[CAindent][12pt]
% Every chapter body text starts with a drop cap:
\setupinitial[n=3,m=1,-\measure{CAindent}]]
\setupindenting[yes,\measure{CAindent}]
\starttext
\placeinitial S{\bf{\kap uppose we}} have a system for the approval of
loans. \input
TeXtgarden gives my mike info for lettrine)
Hi Gerben,
\setupinitial is your friend.
i-context.pdf (included in LMTX) contains the available options
(searching for "\setupinitial [", without quotation marks).
I hope it helps,
Pablo
--
http://www.ousia.tk
___
On 7/9/2021 1:58 AM, Thangalin wrote:
This has come up before on the mailing list, but I was wondering if LMTX
has a more elegant solution than using a transparent/invisible capture
of the drop-cap.
Consider:
|\setupinitial[n=2, style=\tfd, location=text]
\setuphead[chapter][after
This has come up before on the mailing list, but I was wondering if LMTX
has a more elegant solution than using a transparent/invisible capture of
the drop-cap.
Consider:
\setupinitial[n=2, style=\tfd,
location=text]\setuphead[chapter][after={\placeinitial}]
\starttext
\chapter
Hello world
On 5/25/2021 2:10 AM, jbf wrote:
If I run the following in lmtx, the defined color is not recognized and
I get black instead. If I run it as mkiv with --luatex, I get the
darkgray I defined. Is there something else I need to do for lmtx?
\definecolor[darkgray][s=.4]
\setupinitial[color
If I run the following in lmtx, the defined color is not recognized and
I get black instead. If I run it as mkiv with --luatex, I get the
darkgray I defined. Is there something else I need to do for lmtx?
\definecolor[darkgray][s=.4]
\setupinitial[color=darkgray,font=adellesemibold at 46pt
, but the initial is moved to
the left.
But the initial should nearly touch the first characters, and the text lines
should be full width.
The behavior is the same with (latest) MkIV and LMTX.
Is there a misunderstanding of the parameters on my side, or is this a bug?
\setupinitial[
distance
the \setupinitial command. Thanks for
pointing that out.
Sorry, Wolfgag,
I forgot to sign my reply.
Eduardo
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
\updateparagraphshapes
\endgroup
\input weisman
\stoptext
BTW: ConTeXt already provides a command to place initials as part of
the core but it lacks a few features of the lettrine module.
Wolfgang
OK, I get it.
Oh, and yes, I knew about the \setupinitial command. Thanks for pointing
On 3/4/2020 5:09 PM, Thangalin wrote:
Looking to uppercase the first word of a poem:
\setupindenting[yes, 0.75em]
\setupinitial[
state=start,
n=2,
distance=\zeropoint,
]
% This does not appear to work?
\definealternativestyle[PoemFirstWord][\WORD][]
\definefirstline[PoemFirstLine
Looking to uppercase the first word of a poem:
\setupindenting[yes, 0.75em]
\setupinitial[
state=start,
n=2,
distance=\zeropoint,
]
% This does not appear to work?
\definealternativestyle[PoemFirstWord][\WORD][]
\definefirstline[PoemFirstLine][
alternative=word,
style=PoemFirstWord
=darkgreen,
style=\setfontfeature{smallcaps},
n=3]
\setupinitial
[location=text,
n=2,
color=darkred,
voffset=1.2\lineheight,
before={\blank[2*big]}]
% \enabletrackers[typesetters.firstlines,typesetters.initials]
\starttext
\setfirstline
\input ward \par
] \Setupbodyfont{\setupbodyfont[#1,11pt]}
\define[1] \DisplayExample{\switchtobodyfont[#1]\getbuffer}
\setupfirstline [alternative=line,
style=\setfontfeature{smallcaps}]
\setupinitial [location=text,n=2,color=darkred]
\setuphead [chapter
s:
>
> \placeinitial \starteffect[hidden]K\stopeffect\input knuth
> \setupinitial[color=transparentblue]
>
> \placeinitial K\input knuth
> \stoptext
>
> The sample cont
finecolor[transparentblue][t=0, a=1]
\setupwhitespace[medium]
\starttext
\placeinitial
Knuth writes:
\placeinitial \starteffect[hidden]K\stopeffect\input knuth
\setupinitial[color=transparentblue]
\placeinitial K\input knuth
\stoptext
The sample contains two methods.
Jus
Is there anything to do about this?
>
> Hi Martin,
>
> I guess initials make sense only when used inside a paragraph. It is
> problematic when you have white space defined.
>
> Having margin initials is also another approach. You may compare both
> with the following sam
e anything to do about this?
Hi Martin,
I guess initials make sense only when used inside a paragraph. It is
problematic when you have white space defined.
Having margin initials is also another approach. You may compare both
with the following sample:
\setupwhitespace[medium]
\setup
}{ \setupinitial[location=text, n=4] \placeinitial \input{ward}
\setupinitial[location=text, n=6] \placeinitial \input{knuth} }
\stopmixedcolumns
\stoptext
Admitedly this example has lots of lettrines. I added some \testcolumn to fix
that, but now some columns are not balanced (page 3)
\starttext
einitial used to work but now does not with the latest beta.
> >
> > Try the example from http://wiki.contextgarden.net/Initials.
> >
> > \setupinitial[color=red,font=Bold sa
> 4,distance=3pt,state=start,n=3]
> >
> > \starttext
> >
> >
10/31/2015 2:26 PM, Alan Bowen wrote:
\placeinitial used to work but now does not with the latest beta.
Try the example from http://wiki.contextgarden.net/Initials.
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
\starttext
\placein
work but now does not with the latest beta.
>>
>> Try the example from http://wiki.contextgarden.net/Initials.
>>
>> \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
>>
>> \starttext
>>
>> \placeinitial \input knuth
>>
>> \stoptext
&g
t; Try the example from http://wiki.contextgarden.net/Initials.
>
> \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
>
> \starttext
>
> \placeinitial \input knuth
>
> \stoptext
>
>
> fixed in n
On 10/31/2015 2:26 PM, Alan Bowen wrote:
\placeinitial used to work but now does not with the latest beta.
Try the example from http://wiki.contextgarden.net/Initials.
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
\starttext
\placeinitial \input knuth
\stoptext
\placeinitial used to work but now does not with the latest beta.
Try the example from http://wiki.contextgarden.net/Initials.
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
\starttext
\placeinitial \input knuth
\stoptext
Alan
=no]
\setupsectionblock[bodypart][page=no]
\setupsectionblock[appendix][page=no]
\setupsectionblock[backpart][page=no]
% Every chapter body text starts with lettrine:
\usemodule[oldbibtex]
\setupinitial[font=Normal cp
\measure{initial:n},hoffset=3ex,voffset=2.1\lineheight,n=3,m=1,distance=-3ex
of the first line
\setupbodyfont[dejavu]
\starttext
\setupinitial[font=Bold cp
\measure{initial:n},hoffset=2ex,voffset=1\lineheight,n=2,m=2,distance=-1ex]
\placeinitial `What is this. \input ward \par
\stoptext
}} have a system
What do I have to change for mkiv?
search for 'initials' (probably on the wiki somewhere) .. from the sources:
%D \starttyping
%D \placeinitial \input ward \par \input ward \par \placeinitial \input
tufte
%D
%D \setupinitial
%D [location=text,
%Dn=2,
%Dcolor=darkred,
%D
to the \parindent. For example:
\setupinitial[font=Bold sa 4,n=3]
\setupindenting[yes,1em]
\starttext
\section{Knuth}
\placeinitial
\input knuth
\stoptext
I suppose this is not the intended behavior :) The problem doesn't
occur if I enable indenting also for the first paragraph after the
heading
Hi,
If I attempt to insert a drop cap after a heading while the paragraph
indentation is enabled, I get the following effect: all lines the drop
cap spans except the first one (e. g. second and third in case of n=3)
get an additional indent, equal to the \parindent. For example:
\setupinitial
[Normal at 10pt] TEST}
{\type{ht}: TEST \strut\definedfont[Normal ht \the\strutht] TEST}
{\type{cp}: TEST \strut\definedfont[Normal cp \the\strutht] TEST}
\placeinitial \strut \input ward.tex
\start
\setupinitial[style=\bfd,voffset=.25\lineheight,n=1]
\placeinitial \strut \input ward.tex
]
\setupinitial
[location=text,
n=2,
color=darkred,
voffset=-.5ex,
before={\blank[2*big]}]
\starttext
\setfirstline
\input ward \par
\placeinitial
\input ward \par
\setupindenting[medium,yes]
\setinitial % \placeinitial
\input ward \par
\setinitial
Hi there,
the example from the garden (http://wiki.contextgarden.net/Initials; with
reference to [NTG-context] Lettrine not Working as Expected) does not work
for me:
minimal
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
% known parameters: font, distance
Am 23.01.2013 um 08:16 schrieb Andreas Mang m...@imt.uni-luebeck.de:
Hi there,
the example from the garden (http://wiki.contextgarden.net/Initials; with
reference to [NTG-context] Lettrine not Working as Expected) does not work
for me:
minimal
\setupinitial[color=red,font
; with
reference to [NTG-context] Lettrine not Working as Expected) does not work
for me:
minimal
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
% known parameters: font, distance, state, n, command
\starttext
\placeinitial \input knuth
\stoptext
minimal
I had to switch to \placeinitial, e.g.
Instead of:
% \usemodule[lettrine]
% \setuplettrine[Raise=0.1,FontHook=\darkgrey,TextFont=\tf]
I used:
\setupinitial[color=darkgrey,n=2,voffset=-1.5ex]
and then:
\placeinitial My text …
See also
http://archive.contextgarden.net/message/20120322.214713
%D
%D \setupinitial
%D [location=text,
%Dn=2,
%Dcolor=darkred,
%Ddistance=-1em,
%Dhoffset=1em,
%Dvoffset=-3ex,
%Dbefore=\blank]
%D
%D \placeinitial \input ward \par \input ward \placeinitial \input tufte
%D \stoptyping
(dropping caps is something that can interfere
It works, if I use absolute values for font size and vertical offset,
like
\def\Initial{\DroppedCaps%
{\color[red]} {Serif} {36pt} {3pt} {28pt} {3}}
I also tried \setupinitial / \placeinitial like below; I got my
defined font, but only ever in base font size.
%\definefontsynonym[Initial
]
\setupinitial
[color=red]
\starttext
\placeinitial Once upon a time... \input tufte
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
an argument
which is more robust). The old macros will probably be removed (or end
up in a module).
\setupinitial[font=Bold at 48pt,state=start]
\starttext
\placeinitial \input tufte
\placeinitial \input ward
\stoptext
Am 2011-12-13 um 13:28 schrieb Wolfgang Schuster:
\setupbodyfont[pagella]
\setupinitial
[color=red]
\starttext
\placeinitial Once upon a time... \input tufte
\stoptext
Grmbl, I would have sworn that didn’t work before! But it does. Thank
you!
Am 2011-12-13 um 13:38 schrieb Hans Hagen
Am 13.12.2011 um 14:17 schrieb Henning Hraban Ramm:
Am 2011-12-13 um 13:38 schrieb Hans Hagen:
Initials have been rewritten (they also no longer pick up an argument which
is more robust). The old macros will probably be removed (or end up in a
module).
\setupinitial[font=Bold at 48pt
Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster:
Ok, but how can I set the font size relative to bodyfontsize/
baselineskip?
\setupinitial[font=Bold sa 4]
Thank you, I feel stupid.
Works for me, but not in the wiki (I can’t get colors there, too).
http://wiki.contextgarden.net/Initials
Am 13.12.2011 um 14:42 schrieb Henning Hraban Ramm:
Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster:
Ok, but how can I set the font size relative to bodyfontsize/baselineskip?
\setupinitial[font=Bold sa 4]
Thank you, I feel stupid.
Works for me, but not in the wiki (I can’t get
.
Initials have been rewritten (they also no longer pick up an argument
which is more robust). The old macros will probably be removed (or end
up in a module).
\setupinitial[font=Bold at 48pt,state=start]
\starttext
\placeinitial \input tufte
\placeinitial \input ward
\stoptext
in another font -- such as small caps.
Hans: Does the \setupinitial also allow to set the words immediately
after in \sc etc?
no, but it's doable (need a good reason for it)
Hans
-
Hans Hagen
, topspace=0mm, header=1cm, footer=10mm,bottom=5mm,
rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8
%\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank]
%, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank]
9
10
] %,grid=yes
7
8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank]
%, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank]
9
10 % \def\nadpisT{\hcolor\sst}
11 % \def\nadpisG{\hcolor\ssg}
\stopprojectindeed -\popsystemmode
\v
=fit,backspa
ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm,
rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank]
%, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank]
9
in
\placeinitial (the old mechanism will become a module at some point).
\starttext
\placeinitial \input ward \par \input ward \par
\placeinitial \input tufte
\setupinitial
[variant]
[location=text,
n=2,
color=darkred,
distance=-1em,
hoffset=1em,
voffset=-3ex,
before=\blank
]
\stopsectionblockenvironment
%\setmainfont[Antykwa Poltawskiego]
\usemodule[t][lettrine]
\usemodule[t][annotation]
\usemodule[newmat] %vanwege de breuk
\newdimen\Margin
\Margin=20mm
\newdimen\Tekstbreedte
\Tekstbreedte=14cm
\setupinitial
[state=start,
n=3,
distance=.15pc
be used
after whitespace, and I would like to have it used automatically when
appropriate.
Do you want a initial?
\setupinitial[state=start]
\starttext
\placeinitial \input knuth
\stoptext
Wolfgang
___
If your
no idea
how to go about it.
Specifically, I have a font with an alternate glyph that can only be used
after whitespace, and I would like to have it used automatically when
appropriate.
Do you want a initial?
\setupinitial[state=start]
\starttext
\placeinitial \input knuth
\definehead[initialtitle][title]
\setuphead[initialtitle]
[after=\placeinitial]
\definefontsynonym[initial][name:fontin]
\setupinitial
[ state=start,
n=3,
distance=-.1pc,
]
And then I can simply use
\initialtitle {Don Knuth said}
\input knuth
Aditya
are working on drafts.
Isn't it better to use initials? This is what one of setups has
\definehead[initialtitle][title]
\setuphead[initialtitle]
[after=\placeinitial]
\definefontsynonym[initial][name:fontin]
\setupinitial
[ state=start,
n=3,
distance=-.1pc
solution if you are working on drafts.
Isn't it better to use initials? This is what one of setups has
\definehead[initialtitle][title]
\setuphead[initialtitle]
[after=\placeinitial]
\definefontsynonym[initial][name:fontin]
\setupinitial
[ state=start,
n=3,
distance
On Thursday 23 September 2010 18:46:00 you wrote:
Sorry... \placeinitial gobbles \input but here is a standalone
example:
\setupinitial
[ state=start,
n=3,
distance=-.1pc,
]
\starttext
\placeinitial This is what Knuth said: \input knuth
\stoptext
I
On Thu, 23 Sep 2010, Alan BRASLAU wrote:
On Thursday 23 September 2010 18:46:00 you wrote:
Sorry... \placeinitial gobbles \input but here is a standalone
example:
\setupinitial
[ state=start,
n=3,
distance=-.1pc,
]
\starttext
\placeinitial This is what Knuth said
it better to use initials? This is what one of setups has
\definehead[initialtitle][title]
\setuphead[initialtitle]
[after=\placeinitial]
\definefontsynonym[initial][name:fontin]
\setupinitial
[ state=start,
n=3,
distance=-.1pc,
]
And then I can
On Thursday 23 September 2010 19:38:46 Aditya Mahajan wrote:
%D \macros
%D {setupinitial,placeinitial,checkinitial}
%D
%D {\em To be documented.}
Indeed!
So you do not consider the source itself as the documentation :)
Copied verbatum!
I (still) read documentation better
be a one character word !
{\globaldropcaps\let\DroppedIndent\!!zeropoint
\globaldropcaps\edef\DroppedLines{\number\maxdimen}%
\globaldropcaps\chardef\DroppedStatus\plusthree
\def\next{#7}}%
\let\globaldropcaps\global
\next}
btw, another way is:
\setupinitial
[n=3,
distance
attached in gif file. It works fine without \chapter before.
Any
thoughts?
can you try
\unprotect
\ifx\keeplinestogether\undefined
\let\keeplinestogether\gobbleoneargument
\fi
[...]
btw, high level interface:
\setupindenting[medium] \setupwhitespace[medium]
\setupinitial[state
96 matches
Mail list logo